{{useCss "/app-pages/css/modules.scss"}}
<div class="modules">
    <div class="module">
        <div class="title">{{$Cache.postlist.module.name}}</div>
        <div class="contents">
            {{#if $Cache.postlist.list.length}} {{#each $Cache.postlist.list}}
            <div class="item">
                <div class="headimg">
                    <img bind-src="{{preview_img||'/images/public/08_avatar_small.jpg'}}?imageView2/1/w/45/h/45" />
                </div>
                <div class="content">
                    <div class="num">{{replytotal||0}}/{{viewtotal||0}}</div>
                    <div class="ctitle">
                        <href to="/article.html?_id={{_id}}">{{title}}</href>
                    </div>
                    <div class="mod">{{_module_name}}</div>
                    <div class="author">{{creater.info.name||creater.name}}，{{#Time createtime}}</div>
                </div>
            </div>
            {{/each}} 
			<div class="pagebox">
                <a class="button icon-angle-left" event-click="{{'$Event.postlist.prePostPage'}}"></a>
                {{#each $Cache.postlist.pages}}
                <href to="/postlist.html?page={{$Index}}&num={{$Top.$Cache.postlist.page_num}}" class="{{($Top.$Cache.postlist.current_page==$Index)&&'focus'}}">{{$Index+1}}</href>
                {{/each}}
                <a class="button icon-angle-right" event-click="{{'$Event.postlist.nextPostPage'}}"></a>
            </div>
            {{#else}}
            <div class="item">
                <p>此版块还未创建话题</p>
            </div>
            {{/if}}
        </div>
    </div>
</div>
